<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#SellerInfo li {
	display: block;
	float: left;
	width: 100%;
}
-->
</style>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<smart>include file ='../head.config.html'</smart>
<script language="JavaScript" type="text/javascript" src="../templates/default/javascript/jquery.flash.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/thickbox.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.color.js"></script>
<script type="text/javascript">
var goodsphoto= "../<smart> $product_row.p_pic|default:'templates/default/home/images/default.jpg' </smart>";//产品图片地址

$(function(){
//	$('#flasher').flash({
//		src: '../templates/default/flash/swfoto.swf?image='+goodsphoto+'&amp;type=.swf',
//		width: 250,
//		height: 250
//	});
	
	$("#ButtonAddToWatchedItem").click(
		function(){
			$.get("../member/own_collection.php",{action:"new",genre:"product",collection:"<smart>$product_row.p_id</smart>"},function(data){$("#ButtonAddToWatchedItem span").css('color','red').html('收藏成功！').animate({ color: "#444" }, 8000);setTimeout('$("#ButtonAddToWatchedItem span").html("解除收藏")','3000')})
		}
	);//添加收藏
	
	$("#TabDetailInfo").click(function(){
		$("#TabMemoInfo,#TabBidRecord,#TabGuestBook").removeClass("selected");
		$("#TabDetailInfo").addClass("selected");
	});
	$("#TabMemoInfo").click(function(){
		$("#TabDetailInfo,#TabBidRecord,#TabGuestBook").removeClass("selected");
		$("#TabMemoInfo").addClass("selected");
	});
	$("#TabBidRecord").click(function(){
		$("#TabDetailInfo,#TabMemoInfo,#TabGuestBook").removeClass("selected");
		$("#TabBidRecord").addClass("selected");
	});
	$("#TabGuestBook").click(function(){
		$("#TabDetailInfo,#TabMemoInfo,#TabBidRecord").removeClass("selected");
		$("#TabGuestBook").addClass("selected");
	});
	
	$('#TabDetailInfo').click(function(){
		$('#DetailInfo').css('display','');
		$('#MemoInfo').css('display','');
		$('#BidRecord').css('display','');
		$('#GuestBook').css('display','');		
	});
	
	$('#TabMemoInfo').click(function(){
		$('#DetailInfo').css('display','none');
		$('#MemoInfo').css('display','');
		$('#BidRecord').css('display','none');
		$('#GuestBook').css('display','none')
	});

	$('#TabBidRecord').click(function(){
		$('#DetailInfo').css('display','none');
		$('#MemoInfo').css('display','none');
		$('#BidRecord').css('display','');
		$('#GuestBook').css('display','none');
	});

	$('#TabGuestBook').click(function(){
		$('#DetailInfo').css('display','none');
		$('#MemoInfo').css('display','none');
		$('#BidRecord').css('display','none');
		$('#GuestBook').css('display','');
	});
	
	
	
	
	
});
	
	
</script>
<script language="javascript">
function resize() {
	try {
		var aw = screen.availWidth;
		var ah = screen.availHeight;
		window.moveTo(0, 0);
		window.resizeTo(aw, ah);
	}catch(e) {}
}
function cls() {
	if (document.all) {
		window.opener='abc';
	}
	window.close();
	return false;
}
</script>
</head>
<body>
<div id="container">
<smart>include file ='../header.html'</smart> 
<div style="width:100%; display:block; height:20px; line-height:20px">
<div style=" float:left; width:500px; display:inline">
<smart>include file ='../PathLinksLevel.html'</smart>
</div>
 <p style="text-align:right; float:right; background-image:url(../templates/default/home/images/icon_jubao.gif); background-repeat:no-repeat; background-position:25px 2px; width:100px; padding-bottom:0px; margin-top:7px"><a href="<smart> $site_url </smart>/member/own_complaint.php?action=report_product&step=one&code=<smart> $product_row.p_code </smart>">举报此商品</a></p>
 </div>
  <div id="title1">
    <h1><smart> $product_row.p_name </smart></h1>
  </div>
  <div id="ListPathLinks">
    <form id="bidForm" name="bidForm" action="product.php?action=buy" method="post">
      <input type="hidden" name="item_id" value="<smart> $product_row.p_code </smart>" />
      <input type="hidden" name="auction_type" value="<smart> $product_row.p_sell_type </smart>" />
      <input type="hidden" name="title" value="<smart> $product_row.p_name </smart>" />
      <input type="hidden" name="seller_id" value="<smart> $product_row.member_id </smart>" />
      <input type="hidden" name="seller_nickname" value="<smart> $product_row.member_nick </smart>" />
      <smart> if $product_row.p_transfee_charge == "1" </smart>
      <input type="hidden" name="who_pay_ship" value="1" />
      <input type="hidden" name="tf_py" value="<smart> $product_row.p_tf_py </smart>" />
      <input type="hidden" name="tf_kd" value="<smart> $product_row.p_tf_kd </smart>" />
      <input type="hidden" name="tf_ems" value="<smart> $product_row.p_tf_ems </smart>" />
      <smart> else </smart>
      <input type="hidden" name="who_pay_ship" value="运费由卖家承担" />
      <smart> /if </smart>
      <input type="hidden" name="current_price" value="<smart> $product_row.p_price </smart>" />
      <input type="hidden" name="p_sold_num" value="<smart> $product_row.p_sold_num </smart>" />
      <smart> if $product_row.p_sell_type == "1" </smart>
      <input type="hidden" name="buy_now" value="<smart> $product_row.p_price </smart>" />
      <smart> /if </smart> 
      <smart> if $product_row.p_sell_type == "2" </smart>
      <input type="hidden" name="buy_now" value="<smart> $product_row.p_group_price </smart>" />
      <input type="hidden" name="min_count" value="<smart> $product_row.p_group_mincount </smart>" />
      <smart> /if </smart>
      <smart> if $product_row.p_sell_type == "0" </smart>
      <input type="hidden" name="buy_now" value="<smart> $product_row.p_cur_price </smart>" />
      <input type="hidden" name="old_price" value="<smart> $product_row.p_price </smart>" />
      <input type="hidden" name="p_system_step" value="<smart> $product_row.p_system_step </smart>" />
      <input type="hidden" name="p_price_step" value="<smart> $product_row.p_price_step </smart>" />
      <smart> /if </smart>
      <input type="hidden" name="count" value="<smart> $product_row.p_storage </smart>" />
      <input type="hidden" name="photo_url" value="<smart> $product_row.p_pic </smart>" />
      <input type="hidden" name="region" value="<smart> $product_row.p_province </smart><smart> $product_row.p_city </smart>" />
    </form>
    <script type="text/javascript">
    	function doBid() {
    		var form = document.getElementById('bidForm');
     		if (form) {
         	 	try {
          			form.submit();
          		}catch (e) {
          		}
     		}
        }
    	</script>
    <div id="ImageViewer">
      <div id="flasher" style="z-index:-100;position:relative">
        <object id="FlashShowImageObject" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="250" class="NoSwap">
          <param name="allowScriptAccess" value="always" />
          <param name="wmode" value="transparent" />
          <param name="movie" value="../templates/default/flash/view_pic_s.swf" />
          <param name="quality" value="high" />
          <param name="FlashVars" value="pURL=<smart> $pURL </smart>&pTitle=ofHI1bWlzrTM%2BbHqs6y%2FybCuwv67rc%2B1wdDQobX1tPgmxNq%2F48zX17Ch8Q%3D%3D&pCode=NDgxM2FiOGQyZDE1NjVkZDQ0ZDhhOTU1NDNjNGY1ZWM%3D&home=http%3A%2F%2Fwww.taobao.com" />
          <embed src="../templates/default/flash/view_pic_s.swf" quality="high" width="250" height="250" id="FlashShowImageObject" name="FlashShowImageObject" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="pURL=<smart> $pURL </smart>&pTitle=ofHI1bWlzrTM%2BbHqs6y%2FybCuwv67rc%2B1wdDQobX1tPgmxNq%2F48zX17Ch8Q%3D%3D&pCode=NDgxM2FiOGQyZDE1NjVkZDQ0ZDhhOTU1NDNjNGY1ZWM%3D&home=http%3A%2F%2Fwww.taobao.com" />      
        </object>
      </div>
      <dl>
        <dt><a href="view_image.php?pic=<smart> $pURL </smart>" title="点击图片放大" target="_blank" id="ZoomInLink" rel="gallery-plants">放大图片</a></dt>
        <dd><a href="recommend.php?pid=<smart> $product_row.p_code </smart>" class="p_button" id="ButtonRecommendToFriend"><span>推荐给好友</span></a> <a href="#" class="p_button" id="ButtonAddToWatchedItem"><span>收藏这件宝贝</span></a></dd>
      </dl>
    </div>
	
	
	
    <div id="ItemSummary" >
      <ul id='OtherInfo' style="margin-top:10px;_margin-top:-10px;*margin-top:-10px">
        <li class="OtherInfogocenter" style="border:none"><span class="font555">
		<div style="width:300px; border:none">
		<smart> if $product_row.p_sell_type=="1"  </smart>
		一口价：<em class="font_orange B" ><smart> $product_row.p_price </smart></em>元 </div>
		 <smart> /if </smart>
		<div style=" margin:0px">
		 <smart> if $product_row.p_sell_type=="2"  </smart>
		 团购价： <em class="font_orange B" ><smart> $product_row.p_group_price </smart></em> 元
		 <smart> /if </smart>
		 </div>
		 </span></li>
     
	    <smart> if $product_row.p_sell_type=="2"  </smart>
		<li class="OtherInfogocenter"><span class="font555">原价： <smart> $product_row.p_price </smart> 元</span></li>
        <smart> /if </smart>
		<div style="padding-left:70px;_padding-left:0px;*padding-left:0px">
        <smart> if $product_row.p_sell_type=="0"  </smart>当前价格： 
		<em class="font_orange B"  style="font-size:30px"><smart> $product_row.p_cur_price </smart></em> 
		元<smart> /if </smart>		</div>
		</span></li>
        <smart> if $product_row.p_sell_type=="0"  </smart><li class="OtherInfogocenter"><span class="font555">起始价格： <smart> $product_row.p_price </smart> 元</span></li><li class="OtherInfogocenter"><span class="font555">加价幅度： <smart> $product_row.p_price_step </smart> 元</span></li>
        <smart> /if </smart>
        
        <li class="OtherInfogocenter"><span class="font555">运 费：</span> <smart> if $product_row.p_transfee_charge == '0' </smart>卖家承担运费<smart> /if </smart><smart> if $product_row.p_transfee_charge == '1' </smart>平邮：<smart> $product_row.p_tf_py </smart> 快递：<smart> $product_row.p_tf_kd </smart> EMS：<smart> $product_row.p_tf_ems </smart><smart> /if </smart></li>
        <smart> if $product_row.p_sell_type=="2"  </smart>
        <li class="OtherInfogocenter"><smart> if $product_row.less_count > 0 </smart>还差 <smart> $product_row.less_count </smart> 件就可团购!<smart> else </smart>团购条件成立，可立即参加团购!<smart> /if </smart> </li>
        <smart> /if </smart>
        <smart> if $product_row.left_days >= 0 </smart>
        <li class="OtherInfogocenter" id="ButtonBuyNow"><a href="javascript:doBid();" ><span>立刻购买</span></a></li>
        <smart> /if </smart>
        <li><span class="font555">剩余时间：</span>
          <label id="leftTime1"><smart> if $product_row.left_days < 0 </smart>已结束<smart> else </smart><smart> $product_row.left_days </smart>天<smart> $product_row.left_hours </smart>时<smart> $product_row.left_minutes </smart>分<smart> /if </smart></label>
        </li>
        <smart> if $product_row.p_sell_type=="1"  </smart>
        <li><span class="font555">本期售出：</span> <smart> $product_row.p_sold_num </smart>件 </li>
        <li><span class="font555">累计售出：</span> <smart> $product_row.p_sold_sum </smart>件 </li>
        <smart> /if </smart>
        <smart> if $product_row.p_sell_type=="2"  </smart>
        <li><span class="font555">已参加数：</span> <smart> $product_row.p_sold_num </smart>件 	　　　　　<span class="font555">团购最小数：</span><smart> $product_row.p_group_mincount </smart>件</li>
        <smart> /if </smart>
        <li class="OtherInfogoright" style="border:none;_top:152px;_left:90px">	    </li>
        <li><span class="font555">宝贝类型：</span> <smart> $product_row.p_type_name </smart> 	　　　　<span class="font555">所 在 地：</span><smart> $product_row.p_province </smart><smart> $product_row.p_city </smart></li>
        <li class="OtherInfogoright" style="top:159px;_top:179px;border:none;_left:90px">		</li>
        <li><span class="font555">宝贝数量：</span> <smart> $product_row.p_storage </smart> 件 	　　　　<span class="font555">浏 览 量：</span><label><smart> $product_row.p_view_num </smart></label>次</li>
      </ul>
    </div>
	
	
	
	
	
	
	
	
	
	
    <div id="SellerInfo">
      <h2 style="border-bottom:1px dashed #CCC; padding-bottom:2px">掌柜店铺</h2>
      <ol>
      <li > <img src="../templates/default/home/images/ww_welcome.gif" style=" float:left"/><br /><a href="../store/userinfo.php?userid=<smart> $seller_info.member_id </smart>" target="_blank" style="background-image:none;text-align:left; display:block; margin:0px; float:left; height:20px"><smart> $seller_info.login_name </smart></a></li>
      <li>卖家信用：<smart> $seller_info.sale_score|default:"-" </smart></li>
      <li>买家信用：<smart> $seller_info.buy_score|default:"-" </smart></li>
	  <li>卖家好评率：<strong><smart> $seller_info.s_rate|default:"-" </smart></strong></li>
	  <li>买家好评率：<strong><smart> $seller_info.b_rate|default:"-" </smart></strong></li>
        <li style=" border-bottom:1px dashed #CCC">注册时间：<smart> $seller_info.regist_time|date_format:"%Y-%m-%d" </smart></li>
      </ol>
	      <div id="AuthInfo" >
		<dl >
			<dt>认证：</dt>
			<dd>
				<a href="#" target="_blank">
			 		<img src="..<smart>$templatepath</smart>/images/zfb_person_small.gif" alt="支付宝个人实名认证" width="46" height="27" border="0" align="absmiddle">			 	</a>		 	</dd><br />
<dt>服务：</dt>
					<dd>
						<a href="#" target="_blank" >
							<img src="..<smart>$templatepath</smart>/images/prepay_card_003.gif" alt="已加入消费者保障计划" width="35" height="20" border="0" align="absmiddle" title="已加入消费者保障计划">						</a></dd>									
		</dl>
    </div>
	     
<a href="../store/index.php?userid=<smart> $product_row.member_id </smart>"><span>进入掌柜店铺</span></a></div>
  </div>
   <div id="InfoSelectorTarget">
		 <ul >
			<li id="TabDetailInfo" class="selected"><a id="DetailInfo_url" style="cursor:hand"  >宝贝详情</a></li>
			<li id="TabMemoInfo"><a id="MemoInfo_url" style="cursor:hand">其他信息</a></li>
			<li id="TabBidRecord"><a id="BidRecord_url" style="cursor:hand">出价记录</a></li>
			<li id="TabGuestBook"><a id="GuestBook_url" style="cursor:hand">留言簿</a></li>		
			</ul>
			</div>
<br />
  <br />
  <div id="DetailInfo">
  <smart> if $have_attribute == 1 </smart>
      <div id="aboutbaby">
        <ul>
        <smart> section name=j loop=$product_attribute </smart> 
        	<li>
            <smart> $product_attribute[j].a_name </smart>： 
        	<smart> if $product_attribute[j].a_type == 0 </smart>
          		<smart> section name=k loop=$product_attribute_content[j] </smart> 
            		<smart> if $product_attribute_content[j][k].ischecked == 1 </smart>
                		<smart> $product_attribute_content[j][k].ac_content </smart>
                	<smart> /if </smart>
            	<smart> /section </smart>
        	<smart> /if </smart> 
        	<smart> if $product_attribute[j].a_type == 1 </smart> 
        		<smart> section name=k loop=$product_attribute_content[j] </smart> 
            		<smart> if $product_attribute_content[j][k].ischecked == 1 </smart> 
                		<smart> $product_attribute_content[j][k].ac_content </smart>
                	<smart> /if </smart> 
            	<smart> /section </smart> 
        	<smart> /if </smart>
            </li>
        <smart> /section </smart>
        </ul>
      </div>
      <smart> /if </smart>
      <br /><br />
  
  	<smart> $product_row.p_intro </smart>
  </div>
  <div id="MemoInfo">
    <div class="title2">
      <h2>其他信息</h2>
    </div>
    <div class="Inner"><smart> $product_row.p_remark </smart></div>
  </div>
  <div id="BidRecord">
    <div class="title2">
      <h2>出价记录</h2>
    </div>
    <div class="Inner">
      <table>
        <tr>
          <th>买家</th>
          <th>出价</th>
          <th>购买数量</th>
          <th>时间</th>
          <th>状态</th>
        </tr>
        <smart> section name=i loop=$product_order_array </smart>
        <tr>
          <td><a href="../store/userinfo.php?userid=<smart> $product_order_array[i].buyer_id </smart>" target="_blank"><smart> $product_order_array[i].buyer_nick </smart></a></td>
          <td><smart> $product_order_array[i].unit_price </smart></td>
          <td><smart> $product_order_array[i].buy_num </smart></td>
          <td><smart> $product_order_array[i].sold_time|date_format:"%Y-%m-%d %H:%M:%S" </smart></td>
          <td><smart> if $product_order_array[i].state == "2" </smart> 成交 <smart> /if </smart>
          <smart> if $product_order_array[i].state == "0" </smart> 出局 <smart> /if </smart>
          <smart> if $product_order_array[i].state == "1" </smart> 领先 <smart> /if </smart></td>
        </tr>
        <smart> /section </smart>
      </table>
    </div>
  </div>
  <div id="GuestBook">
    <div class="title2">
      <h2>留言簿</h2>
    </div>
    <div class="Inner">
    <smart> if $ses_login.login eq 1 </smart>
    <form action="productmessage.php?action=save" method="POST" id="messageform">
    给掌柜留言：<br>
    <textarea name="txtMessage" cols="60" rows="10" style="height:90px;"></textarea><br>
    <input type="hidden" name="hideproductID" value="<smart> $product_row.p_id </smart>">
    <input type="hidden" name="hidememberID" value="<smart> $product_row.member_id </smart>">
    <input type="hidden" name="pid" value="<smart> $product_row.p_code </smart>">
	<input name="anonymous" type="checkbox" value="1" />&nbsp;&nbsp;匿名留言 （选择该选项后，您对本宝贝的出价、留言和评价都将匿名）<br/>
	验证码： <input name="code" type="text" id="code" size="4" maxlength="4" /><img src="../operation/code.php" onclick="this.src='../operation/code.php?' + Math.random()" title="点击可更换验证码" id="codeimage" name="codeimage"  /><br/>
    <input name="submit" type="submit" value="提交">
    </form>
    <smart> else </smart>
    您需要先<a href='member.php?action=login'>登录</a>，才能向掌柜提问。<br>
    <a href='member.php?action=regist'>免费注册</a>
    <smart> /if </smart>
    <smart> section name=i loop=$message_array </smart>
    <li>
	<smart> if $message_array[i].anonymous eq 1 </smart>
		匿名
	<smart> else </smart>
		<smart> $message_array[i].member_name </smart>
	<smart> /if </smart> 
	问:<smart> $message_array[i].message_content </smart> 
	<smart> if $ses_login.id eq $product_row.member_id </smart>
	<a href="productmessage.php?action=re&messageid=<smart> $message_array[i].message_id </smart>&pid=<smart> $smarty.get.pid </smart>">回复留言</a> <a href="productmessage.php?action=del&messageid=<smart> $message_array[i].message_id </smart>&pid=<smart> $smarty.get.pid </smart>">删除留言</a>
	<smart> /if </smart>
    <smart> $message_array[i].message_time|date_format:"%Y-%m-%d %H:%M" </smart>
    <smart> if $message_array[i].message_recontent ne '' </smart>
    答 <smart> $message_array[i].message_recontent </smart>
    <smart> /if </smart>
    </li>
    <smart> /section </smart>
    </div>
  </div>
  <smart>include file ='../footer.html'</smart> </div>
</body>
</html>
